<?php
include_once("config/config.inc.php");
include_once("dailyreport.function.php");

$retval=chr(hexdec('1B')).chr(hexdec('4D')).chr(1);	
$retval.= getReport(0,1)."\n\n\n\n\n";	
echo '<pre>'. $retval . '</pre>';

$file = "testend.txt";
//$fp = fopen("reports/" .$file, "w");
//fwrite( $fp,$retval);
//fclose($fp);
//shell_exec('c:\pstools\psexec c:\xampp\htdocs\fds\ajax\p.bat ' . $file);

?>